package com.cy.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentLoopMerge;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.HashSet;
import java.util.List;

/**
 * @Author: chenyun
 * @Date: 2021/09/06/19:54
 * @Description:
 */

// 封装写入表格数据的对象
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WriteData {

    // 每隔五行合并一次（竖着合并单元格）
    @ContentLoopMerge(eachRow = 5)
    @ExcelProperty(value = {"电气系实验室课表", "周次"},order = 0)
    private String weekCount;

    @ExcelProperty(value = {"电气系实验室课表", "节次"},order = 1)
    private String courseNum;


    @ExcelProperty(value = {"电气系实验室课表", "星期一"},order = 2)
    private HashSet<String> one;

    @ExcelProperty(value = {"电气系实验室课表", "星期二"},order = 3)
    private HashSet<String> two;

    @ExcelProperty(value = {"电气系实验室课表", "星期三"},order = 4)
    private HashSet<String> three;
    @ExcelProperty(value = {"电气系实验室课表", "星期四"},order = 5)
    private HashSet<String> four;
    @ExcelProperty(value = {"电气系实验室课表", "星期五"},order = 6)
    private HashSet<String> five;
    @ExcelProperty(value = {"电气系实验室课表", "星期六"},order = 7)
    private HashSet<String> sex;
    @ExcelProperty(value = {"电气系实验室课表", "星期日"},order = 8)
    private HashSet<String> seven;


    public WriteData(String week, String courseNum) {
        this.weekCount = week;
        this.courseNum = courseNum;
    }
}
